import java.util.GregorianCalendar
import java.util.Date;


fixture {
  weekInHome(Vacation){
    description = "One week in home"
    startDate = new Date()
    endDate = new Date() + 14
  }
  kuba(Person){
    name = "Kuba"
    lastName = "Janoszek"
    birthday = new GregorianCalendar(1986, 0, 3).getTime()
    email = "kuba.janoszek@gmail.com"
    telephone = "661 746 173"
    vacations = [weekInHome]
  }


  ivoVacations(Vacation){
    description = "Ivo vacations"
    startDate = new Date() + (4 * 30)
    endDate = new Date() + (4 * 30) + 7
  }
  ivo(Person){
    name = "Ivo"
    lastName = "Modrinić"
    birthday = new GregorianCalendar(1986, 5, 3).getTime()
    email = "ivo.modrinic@gmail.com"
    telephone = "0 700 23 23 22"
    vacations = [ivoVacations]
  }


  piotrVacations(Vacation){
    description = "Piotr vacations"
    startDate = new Date() + (6 * 30)
    endDate = new Date() + (6 * 30) + 30
  }
  piotr(Person){
    name = "Piotr"
    lastName = "Gradziński"
    birthday = new GregorianCalendar(1986, 2, 20).getTime()
    email = "piotr.modrinic@gmail.com"
    telephone = "435 223 232"
    vacations = [piotrVacations]
  }


  groovyTeam(Team){
    name = "Groovy"
    members = [kuba, piotr]
  }  
  javaTeam(Team){
    name = "Java"
    members = [ivo, piotr]
  }
}
